package javase0825.run;

public class PrimeRun implements Runnable {
    long minPrime;
    private String mes;
    public PrimeRun(long minPrime,String mes) {
        this.minPrime = minPrime;
        this.mes = mes;
    }

    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName() +
                    this.mes + ":" + (i + 1));
            Thread.yield();

        }

    }
}